<?php

namespace App\Models\Ad;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;



class advert extends Model
{
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $guarded = [];
    //一个广告属于一个分类
    public function category(){
       return $this->belongsTo('App\Models\Ad\Category');
    }
}
